package com.wwj.core.wawa.entity.mapper;

import com.wwj.core.wawa.entity.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/3.
 */
public interface RoomMapper {
    void insertRoom(Room room);

    Room selectRoomById(Integer id);

    List<Room> selectRooms();

    void updateRoomPlayerNumber(@Param("id") Integer id, @Param("increment") int increment);

    Map<String,Object> getRoomLocker(String lock);

    Map<String,Object> releaseRoomLocker(String lock);

    void updateRoom(Room room);

    List<Room> findByPage(Map<String, Object> params);

    int findByWaWaTypeId(Integer id);
}
